home *** CD-ROM | disk | FTP | other *** search
- /* used to get ascii keys from scan codes */
- scan_code_t scan_codes[NUM_KEYS]=
- {
- {0x00,0x00}, /* 00 */
- {ESC, ESC}, /* 01 esc */
- {'1', '!'}, /* 02 */
- {'2', '@'}, /* 03 */
- {'3', '#'}, /* 04 */
- {'4', '$'}, /* 05 */
- {'5', '%'}, /* 06 */
- {'6', '^'}, /* 07 */
- {'7', '&'}, /* 08 */
- {'8', '*'}, /* 09 */
- {'9', '('}, /* 10 */
- {'0', ')'}, /* 11 */
- {'-', '_'}, /* 12 */
- {'=', '+'}, /* 13 */
- {BCKSPC, BCKSPC},/* 14 bckspc */
- {0x09, 0x09}, /* 15 tab */
- {'q', 'Q'}, /* 16 */
- {'w', 'W'}, /* 17 */
- {'e', 'E'}, /* 18 */
- {'r', 'R'}, /* 19 */
- {'t', 'T'}, /* 20 */
- {'y', 'Y'}, /* 21 */
- {'u', 'U'}, /* 22 */
- {'i', 'I'}, /* 23 */
- {'o', 'O'}, /* 24 */
- {'p', 'P'}, /* 25 */
- {'[', '{'}, /* 26 */
- {']', '}'}, /* 27 */
- {CR, CR}, /* 28 enter */
- {0x0, 0x0}, /* 29 CTRL */
- {'a', 'A'}, /* 30 */
- {'s', 'S'}, /* 31 */
- {'d', 'D'}, /* 32 */
- {'f', 'F'}, /* 33 */
- {'g', 'G'}, /* 34 */
- {'h', 'H'}, /* 35 */
- {'j', 'J'}, /* 36 */
- {'k', 'K'}, /* 37 */
- {'l', 'L'}, /* 38 */
- {';', ':'}, /* 39 */
- {'\'', '\"'}, /* 40 */
- {'`', '~'}, /* 41 */
- {0x0, 0x0}, /* 42 left shift */
- {'\\', '|'}, /* 43 */
- {'z', 'Z'}, /* 44 */
- {'x', 'X'}, /* 45 */
- {'c', 'C'}, /* 46 */
- {'v', 'V'}, /* 47 */
- {'b', 'B'}, /* 48 */
- {'n', 'N'}, /* 49 */
- {'m', 'M'}, /* 50 */
- {',', '>'}, /* 51 */
- {'.', '<'}, /* 52 */
- {'/', '?'}, /* 53 */
- {0x0, 0x0}, /* 54 right shift */
- {'*', '*'}, /* 55 * grey asterix */
- {0x0, 0x0}, /* 56 alt */
- {' ', ' '}, /* 57 */
- {0x0, 0x0}, /* 58 caps lock */
- {F1, F1}, /* 59 */
- {F2, F2}, /* 60 */
- {F3, F3}, /* 61 */
- {F4, F4}, /* 62 */
- {F5, F5}, /* 63 */
- {F6, F6}, /* 64 */
- {F7, F7}, /* 65 */
- {F8, F8}, /* 66 */
- {F9, F9}, /* 67 */
- {F10, F10}, /* 68 */
- {0x0, 0x0}, /* numlock */
- {0x0, 0x0}, /* 70 scroll lock*/
- {HOME, HOME}, /* 71 */
- {UP, UP}, /* 72 */
- {PGUP, PGUP}, /* 73 */
- {'-', '-'}, /* 74 grey minus */
- {LEFT, LEFT}, /* 75 */
- {CENTRE, CENTRE},/* 76 */
- {RIGHT, RIGHT}, /* 77 */
- {'+', '+'}, /* 78 grey plus */
- {END, END}, /* 79 */
- {DOWN, DOWN}, /* 80 */
- {PGDN, PGDN}, /* 81 */
- {INS, INS}, /* 82 */
- {DEL, DEL} /* 83 */
- };
-